package com.rd.student.ruanjian.class4.zhouzihe.day0802;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入宠物种类");
        String name = scanner.next();
        System.out.println("请输入女士的名字");
        if(scanner.next().equals("王女士")){
            new Dog().enjoy();
        }
        Store store =new Store();
        Animal animal = store.getInstance(scanner.next());
        Lady wang =new Lady("王女士",new Dog());
        Lady li =new Lady("李女士",new Cat());
        wang.myPetEnjoy();
//        if(scanner.next().equals("李女士")){
//            new Cat().enjoy();
//
//        li.myPetEnjoy();
    }
}
